<table cellspacing="0" class="b3333 main">
 <tbody><tr>
  <th rowspan='3' align='center' class='b0320'>Svega učenika</th>
  <th colspan='8' align='center' class='b0320'>Pozitivan uspeh</th>
  <th colspan='2' rowspan='2' align='center' class='b0320'>Svega pozitivnih</th>
  <th colspan='4' align='center' class='b0320'>Nedovoljan uspeh</th>

  <th colspan='2' rowspan='2' align='center' class='b0320'>Svega učenika za popravni</th>
  <th colspan='2' rowspan='2' align='center' class='b0320'>Ponavlja<br /> razred</th>
  <th colspan='2' rowspan='2' align='center' class='b0020'>Neocenjenih</th>
 </tr>

 <tr>
  <th colspan='2' align='center' class='b0220'>odličnih</th>

  <th colspan='2' align='center' class='b0220'>vrlo dobrih</th>
  <th colspan='2' align='center' class='b0220'>dobrih</th>
  <th colspan='2' align='center' class='b0320'>dovoljnih</th>
  <th colspan='2' align='center' class='b0220'>sa jednom<br /> nedovoljnom</th>
  <th colspan='2' align='center' class='b0220'>sa dve<br /> nedovoljne</th>

 </tr>

 <tr>
  <th align='center' class='b0220'>br.</th>
  <th align='center' class='b0220'>%</th>
  <th align='center' class='b0220'>br.</th>
  <th align='center' class='b0220'>%</th>

  <th align='center' class='b0220'>br.</th>
  <th align='center' class='b0220'>%</th>
  <th align='center' class='b0220'>br.</th>
  <th align='center' class='b0320'>%</th>
  <th align='center' class='b0220'>br.</th>
  <th align='center' class='b0320'>%</th>

  <th align='center' class='b0220'>br.</th>
  <th align='center' class='b0220'>%</th>
  <th align='center' class='b0220'>br.</th>
  <th align='center' class='b0220'>%</th>
  <th align='center' class='b0220'>br.</th>
  <th align='center' class='b0320'>%</th>

  <th align='center' class='b0220'>br.</th>
  <th align='center' class='b0220'>%</th>
  <th align='center' class='b0220'>br.</th>
  <th align='center' class='b0020'>%</th>
 </tr>

 <tr>

  <td align='center' class='b0300' style='height: 40px;background: #FFF;'><?php echo count($uceniks) ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo $proseks['odlican'] ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo number_format($proseks['odlican'] / count($uceniks) * 100, 0) ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo $proseks['vrlodobar'] ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo number_format($proseks['vrlodobar'] / count($uceniks) * 100, 0) ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo $proseks['dobar'] ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo number_format($proseks['dobar'] / count($uceniks) * 100, 0) ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo $proseks['dovoljan'] ?></td>
  <td align='center' class='b0300' style='background: #FFF;'><?php echo number_format($proseks['dovoljan'] / count($uceniks) * 100, 0) ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo $proseks['odlican'] + $proseks['vrlodobar'] + $proseks['dobar'] + $proseks['dovoljan'] ?></td>
  <td align='center' class='b0300' style='background: #FFF;'><?php echo number_format(($proseks['odlican'] + $proseks['vrlodobar'] + $proseks['dobar'] + $proseks['dovoljan']) / count($uceniks) * 100, 0) ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo $proseks['1kec'] ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo number_format(($proseks['1kec']) / count($uceniks) * 100, 0) ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo $proseks['2kec'] ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo number_format(($proseks['2kec']) / count($uceniks) * 100, 0) ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo $proseks['1kec'] + $proseks['2kec'] ?></td>
  <td align='center' class='b0300' style='background: #FFF;'><?php echo number_format(($proseks['1kec'] + $proseks['2kec']) / count($uceniks) * 100, 0) ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo $proseks['3kec'] ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo number_format(($proseks['3kec']) / count($uceniks) * 100, 0) ?></td>
  <td align='center' class='b0200' style='background: #FFF;'><?php echo $proseks['neocenjen'] ?></td>
  <td align='center' class='b0000' style='background: #FFF;font-size: 13pt;'><?php echo number_format($proseks['neocenjen'] / count($uceniks) * 100, 0) ?></td>
 </tr>
</table>
